/**
 *  Copyright (C) 2012 by Development Solutions, Software (DSS)
 *  Released under the terms of the GNU General Public license version 3 or later
 */

package org.dss.gil.util;

import java.awt.Image;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import javax.swing.ImageIcon;
import org.dss.gil.util.generic.PropertyFileReader;
import org.dss.gil.view.About;
import org.dss.gil.view.Calculator;
import org.dss.gil.view.Configurations;
import org.dss.gil.view.GlobalComments;
import org.dss.gil.view.Frequencies;
import org.dss.gil.view.Ide;


/**
 *  @author  Fernando Gil <lobho.gil@gmail.com>
 *  @since   September 2012
 *  @version 1.1
 */
public class Globals {    
    
    public static final boolean IS_PROD = false;
    
    public static final String APP_NAME = "G Interaction Lab";
    public static final String APP_VERSION = " 1.1";
    public static final String AUTHOR_NAME = "Fernando Gil";
    public static final String AUTHOR_MAIL = "lobho.gil@gmail.com";
    public static final String CORP_MAIL = "ds.developSolutions@gmail.com";
    public static final String CO_AUTHORS = "\n";
    public static final String CONFIGURATIONS_INFO  = "Author: "+AUTHOR_NAME+" \nContact: "+AUTHOR_MAIL+"\nContent: G Interaction Lab Configurations";
    public static final String SIMFILE_NAME ="SimFile";
    public static final String TEXTFILE_NAME ="TextFile";
    public static final String CMD_COMMAND = "cmd /C GPSSH ";
    public static final String GENERIC_GPS = "GENERIC.GPS";
    public static final String GENERIC_LIS = "GENERIC.LIS";
    
    //Formats
    public static final SimpleDateFormat DATETIME_FORMAT = new SimpleDateFormat("MM/dd/yyyy hh:mm");
    public static final SimpleDateFormat TIME_FORMAT = new SimpleDateFormat("HH:mm:ss");
    public static DecimalFormat decimalFormat = null;
    
    //File Extentions
    public static final String GPS_EXT =".gpss";
    public static final String GIL_EXT =".gil";
    public static final String TXT_EXT =".txt";
    public static final String COPY_EXT=".copy";
    public static final String PROP_EXT=".properties";
    public static final String FILTER_NAME ="G Interaction Lab";
    public static final String[] EXTENSIONS = new String[]{"gil","gil.copy"};
    
    //Internal Paths
    public static final String ERROR_IMG_PATH   = "/org/dss/gil/view/img/DSSError48.png";
    public static final String INFO_IMG_PATH    = "/org/dss/gil/view/img/DSSInformation48.png";
    public static final String QUESTION_IMG_PATH= "/org/dss/gil/view/img/DSSQuestion48.png";
    public static final String WARNING_IMG_PATH = "/org/dss/gil/view/img/DSSWarning48.png";
    public static final String LOGO_PATH        = "/org/dss/gil/view/img/DSSoftware.png";
    public static final String SIM_ICON_PATH    = "/org/dss/gil/view/img/block_x24.png";
    public static final String TEXT_ICON_PATH   = "/org/dss/gil/view/img/File_x24.png";
    public static final String LOG4J_PROPERTIES = "/org/dss/gil/resources/log4j.properties";
    public static final String DEF_LANGUAGE_PATH= "/org/dss/gil/resources/LanguageBundle_en.properties";
    public static final String DEF_CONFIG_PATH  = "/org/dss/gil/resources/Configurations.properties";
    
    //External Paths
    public static final String USER_CONFIG_PATH = "data/config/Configurations.properties";
    public static final String HELPSET_PATH     = "data/help/HelpConfig.hs";
    public static final String LANGUAGE_PATH    = "data/language/LanguageBundle_";
    public static final String LICENSE_PATH     = "data/license/GNU_GPLv3.txt";
    public static final String PROGRAMS_FOLDER  = "data/programs";
    
    //Simulation Table
    public static final int TOTAL_COLUMNS = 5;
    public static final int ACTIVATION_COL = 0;
    public static final int LABEL_COL = 1;
    public static final int BLOCK_COL = 2;
    public static final int PARAMS_COL = 3;
    public static final int COMMENTS_COL = 4;
    
    //View Elements
    public static About aboutView;
    public static Calculator calcView;
    public static Configurations confView;
    public static GlobalComments commentsView;
    public static Frequencies frequenciesView;
    public static Ide ideView;
    
    //Properties Bundles
    public static PropertyFileReader language;
    public static PropertyFileReader config;
    
    //User Configuration
    public static int maxTabs = 50;
    public static int poolSize = 50;
    
    //Images
    public static Image logoImg;
    public static ImageIcon simfileIcon;
    public static ImageIcon textfileIcon;

 
}
